projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af95e0d
)
(server-unload-hook): New function.
author
Dave Love
<fx@gnu.org>
Tue, 18 Dec 2001 16:42:38 +0000
(16:42 +0000)
committer
Dave Love
<fx@gnu.org>
Tue, 18 Dec 2001 16:42:38 +0000
(16:42 +0000)
lisp/server.el
patch
|
blob
|
history
diff --git
a/lisp/server.el
b/lisp/server.el
index ec7fdafb8511e8f0d9ca0bdf2c0b2018dcd9c3f5..39ba7a8afd2a3d2ef37ca1c43bc13c7ea755f499 100644
(file)
--- a/
lisp/server.el
+++ b/
lisp/server.el
@@
-546,6
+546,11
@@
Arg NEXT-BUFFER is a suggestion; if it is a live buffer, use it."
(switch-to-buffer (other-buffer))))))
(global-set-key "\C-x#" 'server-edit)
+
+(defun server-unload-hook ()
+ (remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
+ (remove-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function)
+ (remove-hook 'kill-buffer-hook 'server-kill-buffer))
\f
(provide 'server)